'''
Created on 2018-01-09
构建车站对象
@author: 623535597@qq.com
'''

class StationObj(object):
    def __init__(self):
        #中文名
        self.name = None
        #代码
        self.key= None
        #拼音
        self.pinyin = None
        #拼音简称
        self.short_pinyin = None
        #数字代码
        self.code = None

    def getName(self):
        return self.name

    def setName(self, value):
        self.name = value

    def getKey(self):
        return self.key

    def setKey(self, value):
        self.key = value

    def getPinyin(self):
        return self.pinyin

    def setPinyin(self, value):
        self.pinyin=value

    def getShortPinyin(self):
        return self.short_pinyin

    def setShortPinyin(self, value):
        self.short_pinyin=value

    def getCode(self):
        return self.code

    def setCode(self, value):
        self.code=value

    def __str__(self):
        return "code:" + str(self.code)+",name:" + str(self.name) + ",key:" + str(self.key)+ ",pinyin:" + str(self.pinyin) + ",short_pinyin:" + str(self.short_pinyin)